﻿using SSAT.Controls;
using SSAT.Utils;

namespace SSAT.Commands
{
    internal sealed class ClearConsoleCommand : CommandBase
    {
        private readonly ConsoleField _consoleField;

        public override string DisplayName
        {
            get
            {
                return CommandsResources.ClearConsoleCommandDisplayName;
            }
        }

        public ClearConsoleCommand(ConsoleField consoleField)
        {
            Verification.CheckArgumentForNull(consoleField, "consoleField");
            _consoleField = consoleField;
        }

        public override void Execute()
        {
            _consoleField.Clear();
        }
    }
}
